package com.zjsru.clients;

import com.zjsru.fallback.OrderClientFallback;
import com.zjsru.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order-service", fallback = OrderClientFallback.class)
public interface OrderClient {
    @GetMapping("/order/query/user/{user_Id}")
    Result queryOrderByUserId(@PathVariable("user_Id") Long user_Id);
}
